<template>
  <div>
    <p>ssssssssssss</p>
  </div>
</template>

<script>
import axios from "axios";
export default {
  name: "2-3",
  created() {
    //   并发请求
    axios.all([axios.get("/data.json"), axios.get("city.json")]).then(
      axios.spread((dataRes, cityRes) => {
        console.log(dataRes, cityRes);
        // console.log();
      })
    );
  },
};
</script>

<style>
</style>